Made sure power gets turned off