added some thread error log