Sorry to hear it. I'm not particularly sure how using a terminal works, but if you're able to see your save files while it's running, it should be possible to find them and make a backup or somehow prevent the terminal from deleting them when you close it?