Wrap in new transactions as exceptions were interfering with ambient transactions in Postgres