private void StopScreenRecording(IInteraction interaction)
        {
            if (interaction.GetAttribute(SCREEN_RECORDING_ATTRIBUTE_GUID).Length == 0)
            {
                return; // No Screen Recording initiated for this interaction. Exiting.
            }

            var screenRecorder = new ScreenRecorder(_qualityManagementManager);
            
            // Parse GUIDs and avoid an exception if one of them is invalid.
            var guids = interaction.GetAttribute(SCREEN_RECORDING_ATTRIBUTE_GUID).Split('|')
                .Where(g => { Guid temp; return Guid.TryParse(g, out temp); })
                .Select(g => Guid.Parse(g))
                .ToArray();
            
            screenRecorder.StopRecordingAsync(_session.UserId, guids, OnScreenRecordingStopped, interaction);
        }