def report_failure(subject)
      begin
        AuditStub.instance.append_error(subject.failure_title, :category => RightScale::EventCategories::CATEGORY_ERROR) if subject.failure_title
        AuditStub.instance.append_error(subject.failure_message) if subject.failure_message
      rescue Exception => e
        fail('Failed to report failure', Log.format("Failed to report failure after execution", e, :trace))
      ensure
        stop
      end
    end
def report_failure(subject)
      begin
        AuditStub.instance.append_error(subject.failure_title, :category => RightScale::EventCategories::CATEGORY_ERROR) if subject.failure_title
        AuditStub.instance.append_error(subject.failure_message) if subject.failure_message
      rescue Exception => e
        fail('Failed to report failure', Log.format("Failed to report failure after execution", e, :trace))
      ensure
        stop
      end
    end
Report failure to core