How do we add custom handling for errors in rendr?