Cleanup of the plugin.