failed to close file at