the help file say't this:

Examples

The main purpose of this command is to allow scripts to exit cleanly, unset variables, save settings, etc. when mIRC exits.

so you can do anything before mirc will quit why does i not work than?