fixed bug causing lights to stay on after exit