Added deep stack trace when exception occurs