Hard kill the Application like terminal session

Hi,

Is there a way to hard kill the terminal session, I use version TN5250 for Terminal. At times we are encountering the following error, any leads will be highly appreciable.

Hi @quick_123,
Use “Disconnect” in the “Terminal Session” activity.

Or try below
Add the “Kill Process” activity.

Set ProcessName to the terminal emulator (e.g., “tn5250”, “pcsws.exe”, or the emulator process name).

Regards,
Arivu

It is fired up under UiPath Executor

Can we kill it by PID?