/// <summary>
 /// Removes the finished render job from the list of running jobs.
 /// </summary>
 private void Capturer_OnCaptureFinished(object sender, CaptureFinishEventArgs e)
 {
     lock (this.runningRenderJobs)
     {
         this.runningRenderJobs.Remove(e.RenderJobId);
     }
 }
        /// <summary>
        /// Sends a message to the client indicating that the captured process has exited.
        /// </summary>
        private void Capturer_OnProcessExited(object sender, CaptureFinishEventArgs e)
        {
            lock (this.runningRenderJobs)
            {
                this.runningRenderJobs.Remove(e.RenderJobId);
            }

            var msg = new RCS_Render_Job_Message(RenderMessage.ProcessExited, e.RenderJobId, RemoteType.Agent);

            try
            {
                this.SendMessage(MessageCode.MC_Render_Job_Message, msg);
            }
            catch
            {
            }
        }