fn close_duplicate(state: &AppState, d: &Duplicate)
Close one duplicate: it says where the agent is, and the agent is not wanted running by it.