code: def _end_session(self, kill=None):
          
          if self._stc:
              if kill is None:
                  kill = os.environ.get('STC_SESSION_TERMINATE_ON_DISCONNECT')
                  kill = _is_true(kill)
              self._stc.end_session(kill)
              self._stc = None
docs: End the client session.