Thats the reason i bought a UPS to protect one of my pc's and all the digiboxes as we get plenty powercuts here.
What i do myself and tell others to do is switch off all sockets and put a light on during a powercut so we know when the power comes back on and then switch everything back after...