Changes to TestClient: only once completion, better error exit code handling, added switch to turn off verbose TCP logging (is used in interactive mode of TestClient).