PngImporter: don't leave dangling pointer after closing.