CommitNow should finish transactions

Posted by peterstace:

Same change in Go client is:

Can just mirror the logic here.