The functions in this section are used on application startup/shutdown and also
to control the behaviour of the main event loop of the GUI programs.
The functions in this section are used on application startup/shutdown and also
to control the behaviour of the main event loop of the GUI programs.