Added disconnection handling to CoinNodeSocket.