- issue189: nullpointer exception on tree nodes after closing a mongo instance
- issue96: add helper for tag-aware sharding