docstr: Destroy the runner. This is called when the runner is no longer needed.
  Currently used under ``on_shutdown`` event of the BentoML server.
docstr_tok: ["Destroy","the","runner",".","This","is","called","when","the","runner","is","no","longer","needed",".","Currently","used","under","``","on_shutdown","``","event","of","the","BentoML","server","."]
code: def destroy(self):
      """
      Destroy the runner. This is called when the runner is no longer needed.
      Currently used under ``on_shutdown`` event of the BentoML server.
      """
      object_setattr(self, "_runner_handle", DummyRunnerHandle())
  
imports: from __future__ import annotations
  import logging
  import typing
  from abc import ABC
  from abc import abstractmethod
  import attr
  from simple_di import Provide
  from simple_di import inject
  from ...exceptions import StateException
  from ..configuration.containers import BentoMLContainer
  from ..models.model import Model
  from ..tag import validate_tag_str
  from ..utils import first_not_none
  from .runnable import Runnable
  from .runner_handle import DummyRunnerHandle
  from .runner_handle import RunnerHandle
  from .strategy import DefaultStrategy
  from .strategy import Strategy
label_desc: Use image node_id 5 for calling the Runner obj's underlying member method code with example usage: obj.destroy() without return types