Thanks for your bug report, unfortunately I have not been able to reproduce this issue. I tested your script under Windows 7 using mIRC v6.35, v7.29 and a debug beta. All three versions of mIRC return the result "1 -- 1 -- 0", regardless of how many times I run the script. I experience no crashes while running or when exiting mIRC.
If you use /comopen and then immediately /comclose and exit, do you see the same issue? How about if you /comclose and exit immediately after the first $com()?
Are you using the built-in Windows 7 zip support? Or have you installed a file archiver such as 7-zip or Winzip?