'End plugins'

def _teardown(self, plugin=None):

    if (plugin is None):
        to_teardown = self._consumer_plugins
    else:
        to_teardown = [plugin]
    to_teardown = (set(to_teardown) - self._disabled_plugins)
    for plugin in to_teardown:
        try:
            plugin.end()
        except BaseFrameworkException as e:
            om.out.error(('The    plugin    "%s"    raised    an    exception    in    the    end()    method:    %s' % (plugin.get_name(), e)))
