The on UNLOAD event triggers in a script when the script is unloaded.
Format: on <level>:UNLOAD:<commands>
Example: on 1:UNLOAD:/echo mIRC Script unloading
on 1:UNLOAD:/echo Unloading script $script
Triggers in the script when it is unloaded. The purpose of this event is to allow a script to cleanup.