add loop exit log