prevent C# app from lingering after closing in background processes code example
Example: prevent C# app from lingering after closing in background processes
Process.GetCurrentProcess().Kill();
Process.GetCurrentProcess().Kill();