Application.addOnShutdown

The ::shutdown signal is emitted only on the registered primary instance immediately after the main loop terminates.

class Application
gulong
addOnShutdown
(
void delegate dlg
,
ConnectFlags connectFlags = cast(ConnectFlags)0
)