In order to prevent this happening again, I believe I need a UPS for the Mac? Presumably it needs the ability to either:
1. Power the Mac (but not necessarily my monitor) all the way through a power outage (an hour or so?), or
2. Automatically hibernate the Mac (running either OS X or Windows) when the power fails
Which of these approaches would you recommend? Is there any particular hardware I should look for?