I would seriously recomend a MaxGui app, that launches your debug one, and uses the Process class to deal with debug messages due standardIO pipes. It may sound more complicated than it really is, and you would have the control to manually halt the offending application if needed, or send a Q (CR) command to shut it down if requested. anyway, creating a console build, and running it shouldn't leave the application running when the debug session is properly ended from the console