[TxMt] Use begin marker of a scope to end the previous one