Be sure what terminals are supposed to be energized and when. The fuel shutoff solenoid may only get power for a few seconds when you turn off the key. That stops the flow of fuel to kill the engine. If you have access to a schematic diagram it may help.