To prevent this in tube equipment, the voltage can be slowly brought up using a variable transformer (variac) on the mains, over a twenty or thirty minute interval.
Such generator sets were also used in industrial complexes and public buildings- anywhere where electricity was required but mains electricity was not available.
When mains electricity supply fails, stored energy in the flywheel is released to drive the electrical generator, which continues to supply power without interruption.