BUG-8494: rework AbstractTransactionHandler
If we have a transaction failure while we are producing transactions,
we could end up adding a delay until the failure is detected as we
would continue jamming in transactions.
Rework internal logic to halt processing as soon as a failure is seen,
speeding up detection and simplifying code.
Change-Id: I19d13c78d94bb39481abde477ec4e3df03a6aa57
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
b7657c3ac7b4697372674b75e820581a6d59e2ba)