SAMZA-253: Consensus shutdown API and per-task commit API. Reviewed by Chris Riccomini.