This adds a 10s timeout on closing the db and additionally cancels active db iterators and waits for them to terminate before closing the db.
This adds a 10s timeout on closing the db and additionally cancels active db iterators and waits for them to terminate before closing the db.