With Informix®, it is possible to interrupt a long running query if the SQL INTERRUPT ON option.
SQL Interruption is not supported with MySQL
Review the code using SQL interruption.