CMMN: How to end the process instance, when the execution of a case of an active process task is finished

In CMMN, when an output criterion completes a process task, the corresponding process instance is not affected at all.

How can I add in the Camunda Modeler a listener to the terminate the process task?

Some reference on how to implement it would do me good.

Thank you.

Regards, Fran