closing files and uncompressing abbyy once