Unable to end a script with a msg only dialog via Task Manager

Not sure if this is a bug or if there's some technical reason for it, but as the title says, if you have a script with a dialog open and try to terminate it with End Task via Task Manager, its status changes to "Aborted", but the window remains open until it gets focus again. Once that happens, the script finally gets terminated.

The problem is with scripts that use dialogs with msgonly=true; the window will never get activated, so that particular script will never actually stop. (Unless you end up killing Opus of course :grinning_face:)

A script ready for testing (ignore the content is just a dummy script I use to report issues).
dlgtest.osp (1.2 KB)

Thanks, we've improved that for the next update.

(Scripts can't be easily aborted while they're in the middle of invoking a method, and the issue here is the dialog was sitting in the Dialog.GetMsg call waiting for an event. For the fix we've made it post a dummy event to the dialog when the abort is generated, which wakes it up and forces it to return from the GetMsg call immediately).