Implement EndpointState::clearEndpoints.