Make fetch() to try three times before failing #18
Fix logic error in script and make error message more detailled #18