App Restarts When Sharing

I have a screenshot sharing feature in my game that uses the standard Windows social sharing API (DataTransfer). E.g.

2364193--160451--upload_2015-11-1_9-45-12.png

However, on WinPhone 8.1/10 if you take too long (~10-15 sec) in this dialog then when the dialog closes instead of properly fast-resuming it has to do a full restart of the app.

Anybody encounter this before? Wondering if it’s my code or how Unity handles suspend/resume?

EDIT: Here’s the relevant code btw:

//run in UI thread
                DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView();
                // Setup the event handler for data request
                dataTransferManager.DataRequested +=
                    new TypedEventHandler<DataTransferManager, DataRequestedEventArgs>( Sharing.OnDataRequested );


//////////////////////////////////////////////

async public static void OnDataRequested( DataTransferManager sender, DataRequestedEventArgs args ) {
                        DataRequestDeferral deferral = request.GetDeferral();
                        StorageFile imageFile = await Package.Current.InstalledLocation.GetFileAsync(ImageFilePath);
                        if ( imageFile == null ) {
                            didSucceedOperation = false;
                            return;
                        }

                        DataPackage requestData = request.Data;
                        requestData.Properties.Title = String.IsNullOrEmpty( Title ) ? String.Empty : Title;
                        requestData.Properties.Description = String.IsNullOrEmpty( Description ) ? String.Empty : Description;
                        requestData.SetText( String.IsNullOrEmpty( TextToShare ) ? String.Empty : TextToShare );

                        List<IStorageItem> imageItems = new List<IStorageItem>();
                        imageItems.Add( imageFile );
                        requestData.SetStorageItems( imageItems );

                        RandomAccessStreamReference imageStreamRef = RandomAccessStreamReference.CreateFromFile( imageFile );
                        requestData.Properties.Thumbnail = imageStreamRef;
                        requestData.SetBitmap( imageStreamRef );

                        didSucceedOperation = true;
                        deferral.Complete();
}

/////////////////////////////

DataTransferManager.ShowShareUI();

Looks like some others are experiencing a similar issue over on the Windows forums: https://social.msdn.microsoft.com/Forums/silverlight/en-US/aa815a72-b5ac-4f09-b127-f19e6355e605/uwpshare-by-using-datatransfermanager-makes-the-app-crashrestart-on-windows-10-mobile

Still no fix though.