Fix closing upvals.