Handle transaction abort in cases where the error occurs during setUp(),...

... and beforeTearDown() is not invoked.

Fixes ZEN-14323