Trying to prevent race condition crash on Android when foreground service is stopped before notification was sent