updated shutdown logic for decommissioner thread