Merge "Fixes dumpstate crashed when shutdown the thread pool"