Clean up properly on deinit (especially when plugin is enabled/disabled several times during one session)