The CopyFile extension method was not disposing the file stream, so any attempt to delete the source file afterwards would fail.

Removing unused using statements.