public static void EndCapturingException(this IExecutionSegment segment, Exception exception)
        {
            if (segment is not null)
            {
                if (exception is not null)
                {
                    segment.CaptureException(exception);
                }

                segment.End();
            }
        }
 private void OnMessageStop() => _onMessageCurrent?.End();