all writers close recordIterators

also did some import cleanup
all writers close recordIterators

also did some import cleanup