Close the transactions