don't leave dangling callback functions on network error
don't leave dangling callback functions on network error

ninchat/ninchat-js,ninchat/ninchat-go,ninchat/ninchat-js,ninchat/ninchat-go,ninchat/ninchat-js,ninchat/ninchat-go,ninchat/ninchat-js