def __Logout(si):
 try:
  if si:
   content = si.RetrieveContent()
   content.sessionManager.Logout()
 except Exception as e:
  pass

def __Logout ( si ) : try : if si : content = si . RetrieveContent ( ) content . sessionManager . Logout ( ) except Exception as e : pass
disconnect service instance .