add portal thread list error check