Moved zk connection to open method. Avoid connection opening in loop