Index: Sql.java =================================================================== --- Sql.java (revision 15764) +++ Sql.java (working copy) @@ -1493,6 +1493,7 @@ log.log(Level.INFO, "Caught exception closing statement: " + e, e); } } + if(cacheConnection) return; if (dataSource != null) { try { connection.close();