Well, we use kixforms for our (logon) script and got the x at the top right corner disabled or even removed (it's one of these two options, not sure can't check right now) so user obviously can’t use it to quite running the script. No need for the console to come up because it's all shown in a kixform.

Maybe this is an option for you?
Will check on our code and post it if it is a valid option in your case.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.