If a service gets terminated, the zk client needs to stop.