Fix crash when pressing buttons on the game controller after exiting a game