These kind of power problems are extremely hard on any power supply, whether it's your computer or something else. A UPS is highly recommended, and consider each event as one of your power supply's nine lives.