End event for automated tasks (BatchProcessTaskRunner)

I’ve developed an automated task (BatchProcessTaskRunner) with the new Concrete9-function.
It’s working so far - but I don’t understand, where I can put code that should be executed after the queue is finish.
Is there an onFinish() function anywhere?

Does BatchProcessTaskRunnerHandler::complete() do what you need?