docs: def setStopAction(self, action, *args, **kwargs):
  		"""
  		Set a function to call when run() is stopping, after the main action is called.
  
  		Parameters
  		----------
  		action: function pointer
  			The function to call.
  		*args
  			Positional arguments to pass to action.
  		**kwargs:
  			Keyword arguments to pass to action.
  		"""
  		self.stop_action = action
  		self.stop_args = args
  		self.stop_kwargs = kwargs