must shutdown thread pool when no in use (#3255)