fix archive creation failures if bad file added  to zip

add returns true but close() will fail , so we check for every file
first