@@ -607,7 +607,7 @@ func (app *App) Shutdown() {
607 var wg sync.WaitGroup
607 var wg sync.WaitGroup
609 // Shared shutdown context for all timeout-bounded cleanup.
609 // Shared shutdown context for all timeout-bounded cleanup.
610− shutdownCtx, cancel := context.WithTimeout(context.WithoutCancel(app.globalCtx), 5*time.Second)
610+ shutdownCtx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
611 defer cancel()
611 defer cancel()
613 // Send exit event
613 // Send exit event