Close the open files before trying to move them
Merge pull request #298 from ericzundel/zundel/fix-corrupt-across-filesystems

Close the open files before trying to move them