Add error trapping to ensure gh status is reported