Safe plugin unload.