public void Logout()
 {
     session.Dispose();
     login.Logout();
 }
 /// <summary>
 /// Logout from Kofax and exit the process
 /// </summary>
 public void Logout()
 {
     session.Dispose();
     login.Logout();
     Application.Exit();
 }