Fix: Don't call onStopped immediatly on stop(). Instead call onStopped() after finishing all running tasks