Exit
File > Exit menu command closes ABViewer.
Make necessary additional settings (exit on Esc or F10) on the Common tab of the Options dialog box (Tools > Options menu command).