A function to destroy the plugin. Removes all data and events.