Uninstall script for plugins works better but still buggy.