public Task Stop()
 {
     monitor.StopMonitoring();
     return(monitorConnection.EnsureClosed());
 }