When inserting a row, I forgot to enter a default value for a field that needed one. The SQL Error appeared on the screen. I clicked ok and was looped back to the error. I could see that the INSERT command was being run again everytime I clicked OK or close the error dialog box. I had to end HeidiSQL from the Task Manager to get out of the loop. Screen shot attached.