Don't sync files to disk if deleteFilesAfterClose is true.