fix for larger files

I has an error for large files that the last chunk wasn't being sent as >0.999 was equating to 1 too soon so made it >0.99999 which fixed it for me also i through 400 errors so have added that to the permanentErrors array