code: private void doClose() throws SQLException {
  		try {
  			if (batch) {
  				doFlush();
  			}
  		} finally {
  			if (lostCount > 0) {
  				InternalLogger.log(Level.ERROR, "Lost log entries due to broken database connection: " + lostCount);
  			}
  
  			if (connection != null) {
  				connection.close();
  			}
  		}
  	}
docs: Unsynchronized method for closing database connection.
  
  @throws SQLException
  Database access failed