[#3234] Ensure that connections are always released, even if we don't have a statement
[#3234] Handle also RuntimeExceptions
[#3234] Distinguish between integration tests for handling syntax errors (no prepared statement available) vs handling constraint violation errors (prepared statement available)
[#3234] Fixed resource leak in new benchmark test