For a scenario in which tRiakClose is used, see Scenario: Exporting data from a Riak bucket to a local file.