def shutdown(self):
        for connection in self._map.values():
            try:
                connection.close(HazelcastError("Client is shutting down"))
            except __HOLE__, connection:
                if connection.args[0] == socket.EBADF:
                    pass
                else:
                    raise
        self._map.clear()
        self._is_live = False
        self._thread.join()
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/reactor.py/AsyncoreReactor.shutdown