Handle OutOfMemoryError from allocating InterruptedExceptions

There can be OOME that occur from allocating InterruptedExceptions
these can cause test failures since daemon threads may still be
running when the runtime is shutting down.

Bug: 18577101

Change-Id: I020f8c9d0f1489772724522ba748eae84f69b424
1 file changed