Implemented graceful closing of the GLFW window, along with emulation.

Just a general note for the future: it's better practice to write `return 0 != glfwWindowShouldClose(m_render_window);` for conditions like this.