correct exit app behavior