add close method to network api
selection window hidden/shown as needed close sockets cleanly

-it is now possible to open/close a window of the same type (e.g.
control) multiple times without errors because of sockets not being
close
-you now cannot connect to servers where the listner isn't running works
-sockets close cleanly