So I just noticed that the UiPath.Core.Activities.StopJob does not stop “right away” there is 1-2 seconds(could maybe be more?) where there is time for other “flows” to execute.
I’m not sure if this is a bug or if this is the expected behaviour.
I have solved this by putting a delay after the Stop job activity so no other flows starts to execute.
Properties of Stop Job:
Studio version: 2023.4.1