AfxTerminate
Called internally if there is no applicable TRY/CATCH in effect.
AfxSetTerminate
Sets the final destination of calls to AfxTerminate.
AfxAbort
The default function called by AfxTerminate.