Improved tracing when exceptions are encountered. Inner exceptions are now logged which makes it much easier to diagnose issues