Adding exception detection to render api.