Problem Regarding Kill Process

I am automating a process which has citrix automation. Now there might be a situation where a pop up may come up and I don’t know when this pop may come up. Due to this pop up a exception might occur and now I want to handle this exception. The only way of handling this exception is closing the application. since this is a citrix automation I can’t use kill Process. How can I handle this.


keep the whole process inside the TRY block of TRY CATCH activity
so that if any exception occurs it will go to CATCH block where we can have a SEND HOT KEY Activity with key as alt+F4

Cheers @Shashi123