setStateStopping := func(request contextRequestStop) {
s.stopReason = request.reason
s.contextTaggedLogger.Info("", tag.LifeCycleStopping, tag.ComponentShardContext)
// Cancel lifecycle context as soon as we know we're shutting down
s.lifecycleCancel()
// This will cause the controller to remove this shard from the map and then call s.FinishStop()
if s.closeCallback != nil {
go s.closeCallback(s)
}