This will ensure we don't accidentally destroy old applications if the new app isn't rebuilt or the rebuild fails. Closes #3249