Handle user interrupt in mysql