better error handling: dns error will be wrapped to meaningful error code to errback