Release wait group after printing to not risk interweaving output.
Release wait group after printing to not risk interweaving output.

Introduce ConnectionType to more accurately describe number of
possible states. This hopefully increases readability significantly.

[fix #119495495]

Signed-off-by: Corbin Halliwill <38cf05332854d0c00b392ad9da3fb5cec295aa83@pivotal.io>

fujitsu-cf/cli,markstgodard/cli,hyenaspots/cli,simonleung8/cli,markstgodard/cli,hyenaspots/cli,markstgodard/cli,hyenaspots/cli,fujitsu-cf/cli,hyenaspots/cli,markstgodard/cli,fujitsu-cf/cli,simonleung8/cli,simonleung8/cli