Hi @anjani_priya,
i think you are running in attended mode and dubug mode so once you got an exception its navigating to UiPath application. if you run unattanded mode this problem will not occure.
If you are running in attended mode run as normal mode so you will get the application screenshots.
Regards,
Arivu