Added a feature. Corrected a bug.

-Added a method to get the IP to ConnectionServer.
-Corrected a bug that tried to delete Connections when the list was
empty.
-Fixed the crash when the widnows was closed by deleting the UI after
everything else.