I need to cancel closing with ALT+F4, CTRL+C, CTRL+Break.
I canceled CTRL+C and CTRL + break using 
Console.CancelKeyPress += delegate (object? sender, ConsoleCancelEventArgs e) {
            e.Cancel = true;
   
        };
but my program still closing after ALT+F4
 How can i fix that?