Unload is called when the plug-in is unloaded from the cache.
A plug-in is unloaded from the cache when a user right-clicks a plug-in in the plug-in tree and clears the
Cached check. This unloads the plug-in (the .dll/.so file, or the script file) from memory,
but does not "unload" the plug-in from Softimage. The Plugin and PluginItem
objects still exist in Softimage, and the plug-in is still registered.
When a plug-in is not cached, it is loaded and unloaded every time a plug-in item (such as a command) is invoked.
This triggers the Reload and Unload callbacks.
Softimage releases any user data stored in the context after the Unload callback returns. Softimage also releases the user
data after Term returns.