stop running app when new app version is started