def exit_with_error(self, exit_code, reason):
    self.exit_reason = reason
    self.exit_code = exit_code
def exit_with_error(self, exit_code, reason):
    self.exit_reason = reason
    self.exit_code = exit_code