public static void closeConnection(Connection connection) {
        if (connection != null) {
            try {
                connection.close();
            } catch (SQLException ex) {
                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Could not close JDBC Connection", ex);
                }
            } catch (Throwable ex) {
                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Unexpected exception on closing JDBC Connection", ex);
                }
            }
        }
    }
Close the given JDBC Connection and ignore any thrown exception.
This is useful for typical finally blocks in manual JDBC code.

@param connection the JDBC Connection to close (may be <tt>null</tt>)
core/src/main/java/org/apache/shiro/util/JdbcUtils.java