unset %j.clients
Is this variable part of NNS? If not, you don't set it anywhere so I don't see why you're unsetting it.