If you direct deleteSessionprocedure to skip the WAIT-FOR call, your application must issue a blocking-I/O statement to allow the adapter to process the shutdown message.
The default value for the shutdown WAIT-FOR flag is YES, which tells deleteSessionprocedure to execute the ABL statement WAIT-FOR PROCEDURE COMPLETE.