public void clean()
 {
     server?.Stop();
     aTimer?.Stop();
     aTimer?.Dispose();
 }
 public void Dispose()
 {
     _metricsServer?.Stop();
 }