Add exceptional handlings into function which downloads json report.

Related by #14