clean up the transactions