Mainframe Connection Timeout

Hi All,

In my workflow I am to connect with mainframe and working on it.
But sometime if any exception occurred it is not disconnecting immediately, it takes 30 minutes as a timeout period.
But in all the config and connection configuration I am using only 1 min, not sure from where the 30 minutes coming in place, could you please help to resolve this issue.