fix crash on exit if no joysticks found