Fix the bogus crashes in layout and reliability tests (the device actually went offline).
2 files changed