Updated the destroy method.

Now un-references the plugin on destroy so that it can be created again
if necessary.