Cloudname/cloudname — pull request #88 by mads-b (2012-10-31 14:33:05+00:00)
Title: Fixed a NullpointerException upon client shutdown

After releaseClaim() is called, the cloudname coordinate is released.

However, in a different thread, a loop is repeating infinitely, reconnecting to zookeeper if the connection goes down, for example in the case of the client shutting down. When reconnecting to zookeeper after the coordinate has been released, a NullpointerException is triggered, as it tries to access the old coordinate, now set to null.