The solenoid receives power when the key switch is on, it retracts to allow flow to the main jet, when you turn the key off, it cuts power to it and protrudes into the main jet flow... so that's why it shuts off when you turn the key, solenoid has no power to it and the plunger is blocking the main passage.