shutdownHook property
ShutdownHook?
shutdownHook
getter/setter pair
Hook executed when disposing bots process.
Most likely by when process receives SIGINT (*nix) or SIGTERM (*nix and windows). Not guaranteed to be completed or executed at all.
Implementation
ShutdownHook? shutdownHook;