Exit on non 2XX status codes
fopen returns a NULL pointer if it fails
Merge pull request #19 from maxmind/greg/improved-error-handling

Exit on non 2XX status codes