Test runner's exit code reports number of failures.
Refactor the test cleanup.