Did someone say.... electricity? * sad emotional state insert familiar faces meme song*
Well. As a expert in ramdom power outages daily (2 times a day for about 6 hours.) I can tell you, that mostly Photoshop and CSP have great autosave features.
I usually draw and have my hands ready on the ctrl S buttons. The great thing about CSP is that it makes backups in the program folder. So it has the auto save, and backup features. Also if i feel the art is nice at the moment, i just hit ctrl S. I had the problem that some files got corrupted ( power goes off while saving) to avoid this do a copy of a previous file in another folder as a backup. If this happens to you in CSP, look your backup folder.
If you have money buy a UPS. This will help you to keep you pc on for about 15 to 30 min during the outage while you save the file and shut down you pc normally.
Also, laptops.