handle disconnection on client