closeConnections issue

Running the MASTER lib with a 0.90.2 ElasticSearch server yielded:

>TypeError: Cannot call method 'forEach' of undefined
>    at ElasticSearchThrift.closeConnections (node_modules/elasticsearch-thrift/elasticsearch-thrift.js:276:25)

These commits fixes that, and tidies up the example to show, what I believe to be, what you intended.