Whats wrong with pressing the stop button in QtCreator when that error happens? Using stopbutton have worked for me to kill everytime.