Adding error handling on moving failed files.