def shutdown(self):
        print('Killing any remaining running minions')
        subprocess.call(
            'pkill -KILL -f "python.*salt-minion"',
            shell=True
        )
        if self.opts['master_too']:
            print('Killing any remaining masters')
            subprocess.call(
                    'pkill -KILL -f "python.*salt-master"',
                    shell=True
            )
        if not self.opts['no_clean']:
            print('Remove ALL related temp files/directories')
            shutil.rmtree(self.swarm_root)
        print('Done')
.. todo::
dataset/ETHPy150Open saltstack/salt/tests/minionswarm.py/Swarm.shutdown--crossover with--dataset/ETHPy150Open jfsantos/ift6266h14/old/pylearn2_timit/iteration.py/FiniteDatasetIterator.uneven