Abort transaction if #close called during transaction.
Capture Data select errors incase report table does not exists.
Minor optimization.
Cannot escape empty Ruby Array to ARRAY[] because element type is unknown.