Remove dead nodes from memory and rebuild uri cache when nodes are restarted