    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())
Destroy the runner. This is called when the runner is no longer needed.
Currently used under ``on_shutdown`` event of the BentoML server.
src/bentoml/_internal/runner/runner.py