added plugin unload hook