Implemented graceful closing of the GLFW window, along with emulation.
Merge pull request #143 from archshift/graceful-quit

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