public void OnStop() { _logger.Info("WebRole.OnStop called"); Container.Dispose(); DiagnosticsHelper.WaitForAllHttpRequestsToEnd(_logger); }