Modified NodeClient to send leave message