Make sure to shut down the zookeeper client before exit.