Occurs when the terminates normally (via xtd::environment::exit or returning from the main function).