Clean up ServiceDiscovery.