Fix error handling in ping_newrelic
Merge pull request #2537 from jgmize/fix-nr-ping-error-handling

Fix error handling in ping_newrelic