when compressing dispose the original file stream