Close the reader when the import is done (see #10249)