protected override void OnSessionEnding(SessionEndingCancelEventArgs e) { Current.Shutdown(); base.OnSessionEnding(e); }