Fixed closing bug on GLFW window