safety shutdown of generator