#3331  IF you are running the jar stand-alone (not from GOAL), AND the
last agent is being unregistered (eg, by clicking the close window
button),  THEN we terminate the stand-alone.