When intercepting errors, also emit the renderend event