Using GLFW Close flag insted of variable