Checking if the service was stopped before sending the broadcastIntent. If not, the message may be sent to a wrong user when the current one logs out and a new one immediately logs in