Resolve a bug in TransactionHook.

This commit makes TransactionHook more robust so that it isn't as susceptible
to failure when exceptions occur in *other* PecanHooks within a request.