stop the service when not sending after app close
prevent multiple copies of the main window at a time