error handling for statsd