fixed destroying window after glfwTerminate