def METHOD_NAME(self, signum, frame):
    if signum == signal.SIGTERM:
        signum = "SIGTERM"
    elif signum == signal.SIGINT:
        signum = "SIGINT"
    self.log_debug("received signal %s", signum)
    return self.do_handle_signal()