private static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
 {
     try
     {
         T.Stop();
         T.Dispose();
         P.Dispose();
     }
     catch (Exception error)
     {
         Console.WriteLine(error.Message);
     }
 }