Linear allows you to set up custom statuses in Completed and Cancelled categories. If a ticket that erg is working on is moved to one of those statuses, consider the work complete and shut down the erg session. Maybe leave a comment on the ticket that because it moved to one of those statuses, it is stopping its work.
