There is a function inside MSG_Parser.gd called end(). You should put the signal emitting function there.
Ah, I see! Thank you so much!