Add a handler for the SDL_QUIT event, which allows windowed SDL to be exited by closing the window.