Shuts down the backend. This must be called after exiting the main loop and before terminating GLFW3.