This is probably a good time to recommend a UPS. For around 100 bucks you can get a UPS that will keep most machines going for 5-15 minutes, perhaps even more. A couple of hundred will get you perhaps half an hour - of course it depends a lot on the exact machine you are using. As a bonus a typical UPS makes a very good filter.
I have an APC Back-UPS 1500 for my iMac and phone and a Belkin 550VA unit for my minimac, timecapsule and DSL modem. Worth every cent. Living out in the wilds we frequently get short outages during the winter as snow pulls on wiring. Those of you in cities are more likely to get problems in summer due to A/C use.