importer: fixed closing of open handles
importer: samples_container: fixed case where all records are bad