To exit a program in an orderly way. Compare with abort, which exits a program in an unorderly fashion.