Relay module for generator shutdown