Camunda 8 BPMN Design common Message pattern for the user task

Hi Team,
In my workflow I have the 10 user task, At the time of user task level, I can get the message event as logout and immediately I have to complete the process instance. How I can handle in generic way. In Every user task I have to add the message boundary event to complete the process or is there any generic way is there to do it ?

@wvinothkumar User tasks are modeled as multi-instance user tasks?

If in case of multi-instance task you can use interrupting boundary event like below: