DNS::AddResolverClass just returns false for duplicate IDs without deleting the object without an exception as far as I can see.