UPS
A backup power supply the contains a battery that will maintain power in the event of a power line failure.
A UPS generally has enough stored power to keep a system running for a few minutes.
This gives you sufficient time to save your work and shut down your system properly.