protected override void OnPause()
 {
     base.OnPause();
     watcherFactory.StopAllInstances();
 }