Raise exceptions before the gamepad_singleton is created. Also, use mp_raise for creating the exceptions.