Enable debugging information
Handle SDL_QUIT event
Don't render or swap buffers after SDL_QUIT

[events] Handle SDL_QUIT event properly