Taming the tax tangle if you’re retiring soon