Improve error handling during browser rendering.