protect somewhat against running finished tasks (which can segfault since we dont have a valid stack)