Improve error handling of pagerduty