Need to do this outside as not needed to be inside lock. shutdown call sourceNoLongerAdvertised which is in user code (custom) and can be anything.