Fix to output a finalizing messages only once