HM/JPM: more refined exception handling
JPM/HM: TransactionLog recovering for addTriple and removeTriple