Added clearInstance method call to reduce memory usage during product export.