Add resiliency against exceptions in Net::DNS.