Fix File closure.