Inheritance: IDisposable
 public static void Stop()
 {
     rec?.Dispose();
     rec = null;
 }