Stops this task, moving it the Finished state and potentially calling onFinish.
See canStart, onStart, onTick, and onFinish documentation for behavior details.
If this task is currently being processed, then this function throws TaskStopException.