I truncate the file currently open by this iterator in this 'if'. This is why I close it explicitly here.