My excel vba macro cannot manage ibm mainframe error "response mode transaction terminated without reply"

  automation, extra, for-loop, vba, windows

I’m building a macro that interfaces to our corporate ibm mainframe via
"extra for windows" terminal emulator.
The problem is that during a cycle, the system itself returns the error
"response mode transaction terminated without reply" code DFS2082I.
This inconvenience blocks the macro and I am forced to unlock the screen
I tried to handle the event and restore functionality via macros
but I did not succeed.
It seems that after the "response mode …" the system does not respond to the commands of the
macro, but only from the keyboard.
I do not know what to do!!
thenk you in advence

Source: Windows Questions