Revert "Move exitedException capture above other logic, to ensure it sets."

This reverts commit be4d7212a1bc7e5d516d7d1d6f757d3b34d8d8cd.
Revert "Always log unhandled exceptions in threads."

This reverts commit 79423216e3aa3ed0dc377aa1998471be02845613.