private void exit()
 {
     saveSettings();
     _poxyRouter.Shutdown();
     _taskScheduler.Stop();
 }