Core: Log error stack trace