private void OnUnhandledExceptionOccurred(object sender, UnhandledExceptionOccurredEventArgs args)
 {
     // Make sure that all storage operations are complete.
     _channelGroup?.WaitStorageOperationsAsync().GetAwaiter().GetResult();
 }