rescue zlib errors when timing out