assure we are closing and reopening the file on truncation for #7