Right click on the mIRC task item. Click close. You get a confirmation dialog, right?
This will no longer be the case in the next beta/version. A script running an infinite loop will make mIRC unresponsive, and such a dialog will not be displayed until the script finishes.
Thanks for your comments everyone.