added stop method for plugin