Various zk and redis connection handling improvements.