Ouput STDOUT and STDERR to a single file.
Finish multi core version.