Clean up of compressFileAdv