CFMAIL and CFMAILPARAM issue on Railo

Today I was seeing "IOException while sending message" in my mail.log file when sending an email with a file attachment.For me the cause was down to the fact I was deleting the file before the email was sent. Either put a "wait" in or clean up the files later via a scheduled task