//TODO: need to check the existing /running task before closing the threadpool
//TODO: need to check the existing /running task before closing the threadpool