fix destroy method for plugins

Destroy method should call with plugin context.