Add error handling to PA rendering