Error handling for DHT connection