"Uninterrupted Power Source" can be purchased at most computer retail outlets, and some good A/V Stores.
they have a battery in it and in the event of power failure they pick up with out missing a beat. you can buy them in different sizes for different applications (usually computers and how much they draw) and range from $75-$1000