try to handle corrupt gzip file