more logging of context when exceptions occur.