Close update-ref when done using it
TransactionManager is currently not closing the update-ref processes it's using to apply reference transactions. This leads to leaking processes every time a reference transaction is applied. Close the process when we're done with it.