auto cleanup of open iterators on db.close()

closes #22