add a timeout to zk check (fixes #310)