OnPackageStop
From Onset Developer Wiki
Description
Package is being stopped. Cleanup your allocated resources here. At this point all timers started by this package have been killed already. Also plugins were notified about the package unload.
Syntax
OnPackageStop()
Example
AddEvent("OnPackageStop", function()
-- Do some cleanup here
end)