Adding stack trace information in case of failure/panic

Useful for debugging in case of panic.