Error handling for Shodan module