add transactionFile.close()