Fixed two concurrency bugs.  Loggers cannot be copied and regular expression patterns cannot be copied.