Also close file on trouble during initial header