update app exit