equinox
dynamic plugins > being a good dynamic plugin

 
How To Be A Good Plugin
Before a plugin is being deactivated, it has a chance of running some codes to save its state and more importantly doing some cleanup! In order to help you doing the cleanup, here is checklist that can help you.