model: do not assume THREAD_FINISH is always the last action