handle errors on uninstall