I have stumbeled across the solution, I dont know why but it was a problem deleting the file, when I changed the code to copy only with over write set as true it didnt miss a beat at all. Same process same code except the delete part.
Thank you for taking the time to investigate and try to help