Use an injected transaction manager [IMMUTANT-384]

This also includes debug printing of stack traces as soon as we see
the exception.