Added function to turn off leds when killing script