if we clear the error status (in THD::clear_error()) make sure to clear the thd->killed == KILL_BAD_DATA too, because it was caused by the error that we're clearing.