Handle connection close events correctly

* If a connection is closed, clean up the user interface to show that.
* Initiate a new connect next time Evaluate is pressed.