Thanks to Dan Schikore for helping me with this same issue. In the script portion of Application Builder put the following code:
(thisModuleInstance<<GetBox) << On Close(
close(soc_dataset, nosave);
close(hlgt_dataset, nosave);
close(hlt_dataset, nosave);
close(pt_dataset, nosave);
close(smq_dataset, nosave);
);
Obviously your statements will be different.