General Exception and Logger code cleanup.