When you pass a command to scon it is called not directly from the same alias anymore, which will create this recursion.
Try this:
alias test scon -a test
(it will close your mIRC)
There used to be a defense mechanism that would prevent mIRC from crashing, but in 6.16 this mechanism is broken.