send event on plugin unload