Sometimes Automator will leave an empty message or loose new mail item on the desktop. This scriplet will quit the app without saving. Replace “Mail” with TextEdit or whatever app necessary.
--Quit App Without Saving
tell application "Mail"
quit without saving
end tell