FIX: Avoid race condition in TaskRunner when stopping tasks.
fixes #12
Merge branch 'taskrunner-stop-bug' into develop