log panic error message along with stack trace