fixed slow shutdown at last stage. (caused by foreground tick thread pool and log cleaner)