Does the ACUCOBOL runtime for Windows (wrun32.exe) provide any support for gracefully exiting a COBOL program when the user closes the console window? The two ways that they might do this are by pressing Alt F4 or clicking the red X in the title bar.
For example, in a particular program we would like to be able to save changes before exiting when the user kills the window. We've trained the users to never do this, but old habits die hard.
Similar problems can also occur in Linux if the user closes the terminal window before exiting their COBOL program. We'd be interested in a solution for Linux as well, but the immediate need is on the Windows side.
We're currently using ACU 9.2.1 in this office. Some facilities are running ACU 8 and possibly 7.