close the patchfile when done so that the file systems can be mounted