Refactor error logging event handler as a NewRelic\AbstractListener.
Report errors from template rendering too.