Binary transport - destroy socket during close

Using socket.end is hanging the process - socket.destroy with case-handling seem to be making it work.

Refer: http://nodejs.org/api/net.html#net_socket_destroy vs http://nodejs.org/api/net.html#net_socket_end_data_encoding
style tweaks
Merge pull request #144 from codemix/prasad83-master

manual merge of #141