// common
 public void Shutdown()
 {
     client.Shutdown();
     if (server != null)
     {
         server.Shutdown();
     }
 }