updated to include information about destruction of plugin object