Adding error handling

Adding error handling around the web requests so you can see the error
message