More robust uninstall routine.