SDL_WaitEvent now has error handling