Now handles SDL_EXIT events.