ENG-5285 use executor shutdown check.