def stop(self): self._taskList.put( ("quit",) ) self._SwitchPlateDriver.close() WbEvBaseAction.stop(self)