In case the zone-sync command fails to pull one or more zones correctly, a temporary file remains at the target location.
I don't know what you want me to fix here. Is there an unclean shutdown of the process that this happens? If the application shuts down properly but there are still any temporary files left, I would need to know why they are there and how to reproduce.