RemoveAgent now iterates remaining agents and removes any peer link pointing to the removed agent's name, preventing stale/corrupt state.