Control thread error checking.