public void Disconnect()
 {
     if (!session.IsDisposed)
     {
         session.Dispose();
     }
 }