I never said "click the minimize button".

Switch to a different process. Right click on the mIRC task item. Click close. You get a confirmation dialog, right? Do it while the infinite loop is running.