fixed resource leak in threadpool
scheduled thread pool
fixed thread leak