If an error occurs during zone file reception, partial or empty files remain in the output directory (and thus corrupting possible successful received data before). This scenario can be handleded by using NamedTemporaryFile for receiving all data and appropriate migration to the final directory.