/// <summary>
 /// Closes stuff down
 /// </summary>
 private static void CloseSockets(StringSocketListener server, StringSocket s1, SS s2)
 {
     try
     {
         s1.Shutdown(SocketShutdown.Both);
     }
     finally
     {
     }
     try
     {
         s2.Shutdown(SocketShutdown.Both);
     }
     finally
     {
     }
     try
     {
         s1.Close();
     }
     finally
     {
     }
     try
     {
         s2.Close();
     }
     finally
     {
     }
     try
     {
         server.Stop();
     }
     finally
     {
     }
 }