Minimized scope of autorelease pools. This avoids needing to drain in _glfwPlatformTerminate, which causes AWT to explode.