Story 4: Error checking to PowerOFF added