Fix major thread idle bug caused by uninitialized PCR. Exceptioning handling fixups.