public static async Task ConsolidateAsync(this ApplicationView view) { if (await view.TryConsolidateAsync()) { return; } Window.Current.Close(); }