Eliminate race condition around running tasks