the hang in issue 3 is probably just a failure to destroy the cluster in a finally clause in the flexing tests -but it still potentially existed, so the extra boolean check ensures that even if the termination signal comes in before the wait, it is picked up