support for plugin termination