Cleaning up the wallet transactions