Close a file before we attempt to move it.
Merge pull request #201 from bangerth/close-file-before-moving

Close a file before we attempt to move it.