This hook approach allows program to keep running but being able to handle exiting of the program in the dynamic way. Fixes #2377
@@ -191,7 +191,7 @@ func main() {
// Initialize and monitor shutdown signal
shutdownSignal = make(chan bool, 1)
monitorShutdownSignal()
monitorShutdownSignal(os.Exit)
// Run the app - exit on error.
app.RunAndExitOnError()
The note is not visible to the blocked user.