In normal circumstances when you've finished using KAPPA nothing need be done from the shell, but to end an ICL session, enter the EXIT command to return to the shell.
What if you've done something wrong, like entering the wrong value for a parameter? If there are further prompts you can enter the abort code !! to exit the application. This is recommended even from the shell because certain files like your NDFs may become corrupted if you use a crude CTRL/C. If, however, processing of the data has begun in the application, it is probably best to let the task complete, unless it is a long job like image deconvolution. If you really must abort, CTRL/C should be hit. From ICL this ought to return you to a prompt, but the processing will continue. Then you can stop the running process by `killing' it. First find the task name
ICL> tasks TASKNAME Process Id ndfpack_mon16528 15186
and then kill it.
ICL> kill ndfpack_mon16528
This removes a the NDFPACK monolith. NDFPACK will be loaded again once you enter one its commands. If pressing CTRL/C several times fails to return you to an ICL prompt then it's time for the heavy artillery--you may have to kill your window. Once back to the shell enter icl to return to ICL, and then kill the process as described above.
If you have interrupted a task, it may be necessary to delete the parameter file and the graphics database .
KAPPA --- Kernel Application Package