private void OnDestroy()
 {
     if (client != null)
     {
         client.Close();
     }
 }