Add beginAction/endAction for better MDC handling.