fix: now threads can finish without coredump