Added some logic to the end-process. 

Now gives you the option of closing the window, or continuing to use the terminal for other purposes.