Stop in for a cup of coffee

They use the same thing as a transfer switch that disengages when it senses power loss from the outside.