Print stack trace on error or fatal