def METHOD_NAME(self) -> None:
    if self._state == WorkerState.DEFUNCT:
        return
    self._terminating = True
    self._state = WorkerState.DEFUNCT
    if self._child.is_alive():
        self._child.METHOD_NAME()
        self._child.join()