python-zk/kazoo — pull request #13 by matterkkila (2012-08-02 20:09:26+00:00)
Title: Allow handler gevent workers and threads to exit gracefully on KazooClient.stop() or exit.

* Added start() and stop() functions to the IHandler interface.
* Added calls to IHandler.start()/stop() to KazooClient._safe_close()
and KazooClient.async_connect()
* Added atexit to register calling the stop functions for running
handlers, in case KazooClient.stop() isn't called.