Only register for cleanup on exit if GPIO was initialized