Disable vsync when exiting the game.

Not sure why, but with some drivers not doing this makes the process burn
cpu usage when back in the menu.  Fixes #6351.