Six questions to ask when sunsetting a foundation or winding down your donor advised fund.