Added tracing for unhandled exceptions in main thread
Merge pull request #820 from lodle/exceptiondebug

Added tracing for unhandled exceptions in main thread