'Request the module process to stop and release it'

def stop_process(self):

    if self.process:
        logger.info("I'm    stopping    module    %r    (pid=%s)", self.get_name(), self.process.pid)
        self.process.terminate()
        self.process.join(timeout=1)
        if self.process.is_alive():
            logger.warning('%r    is    still    alive    normal    kill,    I    help    it    to    die', self.get_name())
            self.__kill()
            self.process.join(1)
            if self.process.is_alive():
                logger.error('%r    still    alive    after    brutal    kill,    I    leave    it.', self.get_name())
        self.process = None
