Close ouput files properly when copying source files
Merge pull request #72 from ez121sl/develop

Close output files properly when copying source files