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

Not quite happy with the name of this function. My suggested alternative would be "ClosingRequested"