2 things you can do:

- Buy a PSU that is overkill. I've got a 900 W powersupply and when I see the lights in my room go out for a second the pc just keeps running.

- Buy a UPS. Why not?