plugins now unload properly