code: def shutdown(self):
          
          if self.lifecycle.is_live:
              self.lifecycle.fire_lifecycle_event(LIFECYCLE_STATE_SHUTTING_DOWN)
              self.near_cache_manager.destroy_all_near_caches()
              self.statistics.shutdown()
              self.partition_service.shutdown()
              self.heartbeat.shutdown()
              self.cluster.shutdown()
              self.reactor.shutdown()
              self.lifecycle.fire_lifecycle_event(LIFECYCLE_STATE_SHUTDOWN)
              self.logger.info("Client shutdown.", extra=self._logger_extras)
docs: Shuts down this HazelcastClient.