Added missing file close.