Local variable.
Remove error handler.
Test invalid file.
Prevent creating empty files on error.
Invalid source and target file.
Remove exception capturing.