basho/yokozuna — pull request #118 by rzezeski (2013-05-21 20:35:41+00:00)
Title: Close hashtree on application stop

Make sure to close the Yokozuna hashtrees properly during application
stop.

* Need to trap exits on `yz_index_hashtree` servers so that
`terminate` callback will be invoked.

* Add `close_trees` call to `terminate` callback.

* Add `closed` flag to state to make sure trees are only closed if
they are currenty open.