Press Escape. Click Save Game. Save the game. Press Escape. Click on Quit/Exit Game. This cannot be done during battles.