added code to turn off LEDs upon program exit