Closing a solenoid after a set time interval ends