Close app on upgrade