modified mov file to handle error better, will not rename file to error if error is at file level. Emails will be sent out also