title: Azure service fabric does not cancel with lots of tasks
body: <p>I'm trying to test out various performance aspects of Azure Service Fabric to understand how it all works and have hit against some problems when cancelling a service.</p>
  
  <p>In one particular test, I create 101 tasks, 50 reading a queue, 50 writing a queue and 1 showing progress and reporting it. </p>
  
  <p>When the service gets stopped, for example just re-deploying the application I can see the cancellation token gets the request and some tasks cancel, but I see a lot of events in the event viewer basically saying</p>
  
  <pre><code>AsyncCalloutAdapter-22542743: end delegate threw an exception
     System.OperationCanceledException: Operation canceled. ---&gt;     System.Runtime.InteropServices.COMException: Operation aborted (Exception from   HRESULT: 0x80004004 (E_ABORT))
     at System.Fabric.Interop.NativeRuntime.IFabricStateReplicator2.EndReplicate(IFabricAsyncOperationContext context)
     at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
     --- End of inner exception stack trace ---
  </code></pre>
  
  <p>The only way to get this back is to either reset the local cluster.</p>
  
  <p>When using a fewer number of tasks it all seems to work ok.</p>
  
  <p>This is all using a local development cluster.</p>