Improved app destruction and notification behavior