Fixed bug where stopping the server while a client is connected causes
the GUI to treat the client as still connected.