Prevent multi-thread access to StringBuilder on failed process executions.

Fixes (issue #10).