public void shutdown() {
		try {
			zookeeper.shutdown();
		}
		catch (Exception e) {
			// ignore exception
		}
		try {
			factory.shutdown();
		}
		catch (Exception e) {
			// ignore exception
		}
		try {
			Utils$.MODULE$.rm(logDir);
		}
		catch (Exception e) {
			// ignore exception
		}
		try {
			Utils$.MODULE$.rm(snapshotDir);
		}
		catch (Exception e) {
			// ignore exception
		}
	}
A port of kafka.zk.EmbeddedZookeeper, compatible with Zookeeper 3.4 API

@author Marius Bogoevici
spring-xd-test/src/main/java/org/springframework/xd/test/kafka/EmbeddedZookeeper.java