Fix socket close event handling in node.js 0.11.x

Fix mcavage/node-ldapjs#205