You can use the NATRPC03 exit - it is called after each RPC call (before it returns data). From there, use CMTASK to start a new Natural thread - the STACK for that thread will call USR2073N until it receives 00070007 (server not registered) response. See library SYSEXTP for examples of calling CMTASK under the ASYN* examples.
Your Natural environment will need to be configured for NTASKS if you are running in batch. You can use NTASKS=1, but since CMTASK will behave as if you specified NTASKS=2, you need to ensure that you can operate with NTASKS=2 (or more) correctly (eg use reentrant ADALNKR, not ADAUSER and use shared nucleus).
#EntireX#webMethods#Mainframe-Integration