Replaced Application exit with Uninstall()