SDL2: Fix exit routine