msg release while error;add FIN log