When closing a peer, mark everything routed via it as unreachable. It would be better to remember everyone's REACH messages and switch to the next-best route, but that's a good deal more work. Anything actually still reachable will get fixed soon.