Eliminated race condition at end of ctrl_thread if xfer_thread is still running caused protection faults.