def stop(self, signum, frame):

        self.logger.info("Stopping due to signal #%d" % signum)
        raise KeyboardInterrupt
This method handles SIGINT and SIGTERM signals.
dataset/ETHPy150Open comodit/synapse-agent/synapse/dispatcher.py/Dispatcher.stop