improves in start/stop logic for background service