Better waiting for connection of zk.
Added kill pill for main loop from ZK console.