{"action":"opened","issue":{"url":"https://api.github.com/repos/alibaba/node-hbase-client/issues/82","labels_url":"https://api.github.com/repos/alibaba/node-hbase-client/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/node-hbase-client/issues/82/comments","events_url":"https://api.github.com/repos/alibaba/node-hbase-client/issues/82/events","html_url":"https://github.com/alibaba/node-hbase-client/issues/82","id":88390325,"number":82,"title":"Closing connections","user":{"login":"misterdai","id":209023,"avatar_url":"https://avatars.githubusercontent.com/u/209023?v=3","gravatar_id":"","url":"https://api.github.com/users/misterdai","html_url":"https://github.com/misterdai","followers_url":"https://api.github.com/users/misterdai/followers","following_url":"https://api.github.com/users/misterdai/following{/other_user}","gists_url":"https://api.github.com/users/misterdai/gists{/gist_id}","starred_url":"https://api.github.com/users/misterdai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterdai/subscriptions","organizations_url":"https://api.github.com/users/misterdai/orgs","repos_url":"https://api.github.com/users/misterdai/repos","events_url":"https://api.github.com/users/misterdai/events{/privacy}","received_events_url":"https://api.github.com/users/misterdai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T11:00:16Z","updated_at":"2015-06-15T11:00:16Z","closed_at":null,"body":"I can't seem to have the HBase client close all connections and all the Node.js process to exit normally.  I've tried iterating the `client.servers` and calling `.close()` against each of them but I just receive a message about the connection being closed with no error and the Node.js process stays open (no other code is contained).\r\n\r\nExampe:\r\n```javascript\r\nvar HBase = require('hbase-client');\r\nvar client = HBase.create({zookeeperHosts: ['127.0.0.1:2181']});\r\n\r\nclient.getRow('table', 'rowName', ['field'], function(err, row) {\r\n  console.log(row);\r\n  // How do I close the connection?\r\n  for (var name in client.servers) {\r\n    console.log('Closing connection to ' + name + '.');\r\n    client.servers[name].close();\r\n  }\r\n});\r\n```\r\nThis script, doesn't ever finish executing for me."}}