adding destroy functions
Merge pull request #5 from rochestb/plugincleanup

adding destroy functions