added end of buffer msg when stream is finished