error handling for freegeoip