Fix payload memory free when detroying messages