AS2 - SendOrderSender.send []

I'm facing an error when the system try to send a file that is still being copied to the folder.

The system shows an error:

SendOrderSender.send []:

The problem is that AS2 delete the file, don't send the file to the partner and don't send e-mail about this error. Is it possible to avoid this error, or at least have a message sent by e-mail?