code: def thread_stopped(self):
  		
  		if self.__task is not None:
  			if self.__task.stop_event().is_set() is False:
  				self.__task.stop()
  			self.__task = None
docs: Stop scheduled task beacuse of watchdog stop
  
  		:return: None