code: def __Logout(si):
     
     try:
        if si:
           content = si.RetrieveContent()
           content.sessionManager.Logout()
     except Exception as e:
        pass
docs: Disconnect (logout) service instance
     @param si: Service instance (returned from Connect)