handle and log exception if archive file fails to be written