The current --failfast implementation does not work on Windows.
This PR is an alternative to #22936, and it is based on the #22936#pullrequestreview-751153668:
An alternative would be to just not fix it. I mean who uses Windows anyway (to run the functional tests with --failfast).
At least with the error message, it well be clear that something went wrong. With this patch it will leave them dangling.