Turning off output pin on application exit