Countdown latch needs to be instantiated when calling waitForServer or waitForResult