def METHOD_NAME(self, pw: ProgramWidget, exit_code: int, exit_status: QProcess.ExitStatus):
    if exit_code == 0:
        self.post_message(pw, "{} Done".format(pw.shortname))
    else:
        self.post_message(pw, "{} terminated with code {}".format(pw.shortname, exit_code))