close and join threadpool. better debug message control.