Improve error handling in Shodan::WebAPI