Yes, it is. the current.set causes a release of the previously held IFileIO which may close a file (and may throw an exception).