Fixed duplicate output bug.

When running multiple configurations in one process, by passing multiple
configurations, the later runs would write duplicate output to their
respective configurations.