[#2162] forgot to close the file pointer on the early exit.