Exit if there is an "getaddrinfo ENOTFOUND" or "connect EMFILE" error.