Ends the IUP toolkit and releases internal memory. It will also automatically destroy all dialogs and all elements that have names.
void IupClose(void); [in C] iup.Close() [in Lua]
In Windows, the CoUninitialize function is called.
In Motif, the XtDestroyApplicationContext function is called.
This function is usually called by the application. But if IUP is dynamically loaded in Lua 5 then you should call iup.Close from Lua.