reevn
07/30/2020, 8:54 PMonClose
callback is only implemented for closing scopes, but for definitions on the root scope it seems that it is actually not executed, so unloadModules
will not call onClose
on your definitions.
Please correct me if I'm wrong.