Switch back to the command prompt when you press the "X" Close button