         exception.json = json
         exception.jsonInvalid = true
     exception.location = snippet if snippet
+    exception.process = process if process
 
     exceptions.push exception
     if exception.json and exception.json.stderr

      json = json.join "\n"
      stderr.pop()

    # What remains is the exception message. 
    message = stderr.join "\n"

    # Build the exception record.
    exception = { message, stack }

    date[2..5] = (parseInt(match[i], 10) for i in [2..5])
    date = createDate.apply(null, date)
    [ host, rest ] = match[6..7]
    if match = /^((?:worker|janitor)[_\w]*)\[(\d+)\]:\s+(.*?)(\s+{.*)?$/.exec(rest)
      [ program, pid, message, json ] = match[1..4]
      record = { date, host, program, pid, message }
      if json
