PLAT-4821 make interrupt checking loop sleep rather than yield and check for thread death.