def METHOD_NAME(self):
    if not self.is_running() or not self.transport:
        return
    try:
        self.transport.kill()
        self.transport.close()
    except:  # pylint: disable=bare-except
        pass