Make DomainNameResolver implement Closeable