Added dump of the exception stack trace to help diagnose the problems.