Fixed logging in retrieving files.
Fixed report generation at the end of the check.