Terminate Activity

Gurus,
I am reaching out to you to see how to handle the below scenario.

  1. User has access to a webpage and the workflow flows as expected
  2. In the event that the user does not have access, an “Unauthorized Access” message is displayed.
  3. Upon reaching that message, I logout and try to “Terminate Activity”.
  4. The “Terminate Activity” isnt closing gracefully. How do I achieve this ?

Please advise.

Close the browser window instead of terminating.

@kaushiks1

Terminate activity is used to stop or kill the running Job.

It wont close the browser/window, use close tab/close window/kill process.