@AfterClass public static void shutDownStatic() throws Exception { try { if (bookKeeperClient != null) { bookKeeperClient.close(); } } finally { if (bookKeeperCluster != null) { bookKeeperCluster.shutdown(); } MiniAvatarCluster.shutDownZooKeeper(); } }