The thing I would try first is starting the car and trying all four open/close buttons/sensors to see if any of them will close the hatch (key fob, driver's side button, hatch button, kick sensor). If no success, I'd pull the fuse/relay to the hatch and see if it's blown/bad. I then might disconnect the battery leads for a minute, then reconnect to see if that reset Aslo take a look at the electrical connection at the hatch to see if a wire is visibly pinched or cut.
Short of finding some kind of manual override on the hatch, if I needed to drive the car now, I would unseat each piston where it bolts to the hatch, and leave the lower bolts intact. This should allow the hatch to close freely, but I'm not sure if the latching mechanism will still work. On that note, you might want to carefully inspect the latching mechanism to make sure nothing is caught in it, creating a jam, and causing the system to enter some kind of safe mode where the hatch is prevent form working. If the hatch won't latch, you could use rope or a bungee to the back seat headrest or elsewhere to at least prevent the hatch from opening while driving. If you do this, keep all the windows closed, and don't have kids, pets or things you don't want to lose in the rear cargo area, just in case...