Remove error handler from old socket before closing. (#269)
Remove error handler from old socket before closing. (#269)

_closeSocket was not detaching the error handler from the socket before closing which could lead any subsequent errors to pull down a new connection on a new socket.
damencho/strophejs,damencho/strophejs,strophe/strophejs,strophe/strophejs,strophe/strophejs,damencho/strophejs