basic error checking when uninstalling