Exit of SDL_WaitEvent() returns an error.