Fixed SDL window staying open after the game exits