async def METHOD_NAME(self) -> None:
    """Tear down the plugin, undoing the work done in `setup()`.
    Called by Protocol Engine.
    At this point, the APIv2 protocol script must have exited.
    """
    self._actions_to_dispatch.done_putting()
    try:
        if self._action_dispatching_task is not None:
            await self._action_dispatching_task
            self._action_dispatching_task = None
    finally:
        if self._subscription_exit_stack is not None:
            self._subscription_exit_stack.close()
            self._subscription_exit_stack = None