Updated file transfer to keep trying despite errors until done