Fixed a bug where if the source file was deleted before it was copied, the program would crash.