Add a stop method to the plugin