@Override
	public synchronized void stop() {
		if (this.running) {
			if (this.currentState != null) {
				curatorFramework.close();
			}
			this.running = false;
		}
	}
Closes the underlying {@link CuratorFramework} instance.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/ZooKeeperConnection.java