public void Shutdown()
 {
     _photon.Disconnect();
     _photon.StopThread();
 }