sdl problem with closing window