Don't try to close joysticks in the input controller destructor if SDL has quit