fix: ensure no tasks are queued when trying to soft kill a dynamic worker