Try closing glfw window before opening a new one