If the domain doesn't resolve, the error is not caught.
Fix explained here:
https://stackoverflow.com/questions/21662619/how-to-catch-getaddrinfo-enotfound
var getRequest = _http.get(options, function(res) {
// …
});
getRequest.on('error', function (err) {
console.log(err);
});