added codes to exit code

- exit on curl error / http error (not 200)
- prevent endless loop on retrieving domains
Merge pull request #10 from deanearlbartolabac/added-new-logs-(count)

added codes to exit code