Add exceptional handlings into function which downloads json report.

Related by #14
Merge pull request #15 from ytnobody/feature/add_exceptional_handling_to_download_json

Add exceptional handlings into function which downloads json report.