Add ThreadUtil to safely close thread pool