Start message serialization, fixed current memory leaks