Adding on-exit code to make sure GPIO turns off on exit