delete threadpool. will write my own later.