if failed? && !exception.is_a?(SystemExit)
message_subject = "Chef run failed on #{node.name}"
message_body = "#{run_status.formatted_exception}\n"
if failed? && !exception.is_a?(SystemExit)
message_subject = "Chef run failed on #{node.name}"
message_body = "#{run_status.formatted_exception}\n"