When an error occurs during a test run in batch mode, continue with the
next test instead of crashing.