More fixes for thread naming and shutdown logic.
SITEWHERE-100