Shouldn't the node and client be cached when it's created and handed back each time?  I think this might cause a leaking or resources?  Those two objects will need to be disposed of properly,