Merge "Add new app close implementation." into sc-dev