Added error handling for invalid Json url.

Added in generic error reporting as well so that errors can be displayed anywhere.