Add a retry handler and use within the CopyDirectory function