def shutdown(self, exitcode=0, exitmsg=None):
        if hasattr(self, 'minion') and 'proxymodule' in self.minion.opts:
            proxy_fn = self.minion.opts['proxymodule'].loaded_base_name + '.shutdown'
            self.minion.opts['proxymodule'][proxy_fn](self.minion.opts)
        self.action_log_info('Shutting down')
        super(ProxyMinion, self).shutdown(
            exitcode, ('The Salt {0} is shutdown. {1}'.format(
                self.__class__.__name__, (exitmsg or '')).strip()))
    # pylint: enable=no-member
If sub-classed, run any shutdown operations on this method.
dataset/ETHPy150Open saltstack/salt/salt/cli/daemons.py/ProxyMinion.shutdown