Rest call was not closing the zookeeper connection leading to "Too many connections" error on zookeeper. Now explicity closing zookeeper connection after each rest call.

Web zookeeper connection is closed on session destroy. session timeout set at 5 mins.