cleaning up after early zlib closing