Before the transaction migration is implemented, the connection must be closed if a transaction is open and the connection to the master is lost. Doing this retains the same transactionality as a direct connection to the server would.