If internal copyfile fails, delete destination and not the source file.  Previously, the target was never deleted, even if the copy/rename failed.