be sure to stop service if no download tasks are existing

Change-Id: I0e3b602a7307d22f9fcd084710f0b70ef19d821a