code: public void onBranchTerminated() {
  		if(outgoingRequest != null) {
  			String txid = ((ViaHeader) outgoingRequest.getMessage().getHeader(ViaHeader.NAME)).getBranch();
  			proxy.removeTransaction(txid);
  		}
  	}
docs: This will be called when we are sure this branch will not succeed and we moved on to other branches.