Auto stop solenoid