Improve error checking from whois