If an error occured while syncing and ignore_failed_copy==False, then exit with -1