Cleaned up code for logging and multithread. Refs #8685.