def kill_processes(self):
        LOGGER.critical('Max shutdown exceeded, forcibly exiting')
        processes = True
        while processes:
            processes = self.active_processes
            for proc in processes:
                if int(proc.pid) != int(os.getpid()):
                    LOGGER.warning('Killing %s (%s)', proc.name, proc.pid)
                    os.kill(int(proc.pid), signal.SIGKILL)
                else:
                    LOGGER.warning('Cowardly refusing kill self (%s, %s)',
                                   proc.pid, os.getpid())
            time.sleep(0.5)

        LOGGER.info('Killed all children')
        return self.set_state(self.STATE_STOPPED)
Gets called on shutdown by the timer when too much time has gone by,
dataset/ETHPy150Open gmr/rejected/rejected/mcp.py/MasterControlProgram.kill_processes