Copied native binding from node-zookeeper in order to apply custom patches
Better handling of client library errors