Fixed a flaky test: AllocatorTest/SchedulerFailover.

Review: https://reviews.apache.org/r/15707
Improved exit status printing.

Review: https://reviews.apache.org/r/15708