add error handling to Whois api
fix error handling
Merge pull request #9 from dahal/error-handling

add error handling to Whois api :+1