Fix error handling of parallel-compile-files.

Related to PR 14809.

I couldn't find any tests for these files, do they exist? If not where should I put new tests and what can I rely on? Is rackunit ok, or should I avoid it for dependency reasons?