moved the GPIO cleanup to the gracefull exit