public void resetState() {
	if (client.isConnected()) {
	    if (transaction != null) {
		transaction.clear();
	    }

	    if (pipeline != null) {
		pipeline.clear();
	    }

	    if (client.isInWatch()) {
		unwatch();
	    }

	    client.resetState();
	}

	transaction = null;
	pipeline = null;
    }