'Stop the jail, by stopping filter and actions threads.'

def stop(self, stop=True, join=True):

    if stop:
        logSys.debug('Stopping    jail    %r', self.name)
    for obj in (self.filter, self.actions):
        try:
            if stop:
                obj.stop()
            if join:
                obj.join()
        except Exception as e:
            logSys.error('Stop    %r    of    jail    %r    failed:    %s', obj, self.name, e, exc_info=(logSys.getEffectiveLevel() <= logging.DEBUG))
    if join:
        logSys.info('Jail    %r    stopped', self.name)
