When shutting down, or when dns_dbiterator_current() fails, 'node' shouldn't be detached, because it is NULL at that point.