'Stops the actions in reverse sequence (optionally filtered)'

def stopActions(self, actions=None):

    if (actions is None):
        actions = self._actions
    revactions = actions.items()
    revactions.reverse()
    for (name, action) in revactions:
        try:
            action.stop()
        except Exception as e:
            logSys.error("Failed    to    stop    jail    '%s'    action    '%s':    %s", self._jail.name, name, e, exc_info=(logSys.getEffectiveLevel() <= logging.DEBUG))
        del self._actions[name]
        logSys.debug('%s:    action    %s    terminated', self._jail.name, name)
