Fixed awaiting timeot for threadpool