Hello,
We tried with above approach. When application stops responding, the bot stays hanged. Until we manually intervene and use task manager to close sap it does not proceed further.
However, it does retry afterwards if the timeout has exceeded. My issue is, i do not want to manually intervene everytime sap hangs, as bot also hangs until sap application is closed manually.