src/main/java/com/conveyal/gtfs/error/SQLErrorStorage.java
public void commitAndClose() {
        try {
            LOG.info("Committing errors and closing SQL connection.");
            this.commit();
            // Close the connection permanently (should be called only after errorStorage instance no longer needed).
            connection.close();
        } catch (SQLException ex) {
            throw new StorageException(ex);
        }
    }
public void commitAndClose() {
        try {
            LOG.info("Committing errors and closing SQL connection.");
            this.commit();
            // Close the connection permanently (should be called only after errorStorage instance no longer needed).
            connection.close();
        } catch (SQLException ex) {
            throw new StorageException(ex);
        }
    }
This executes any remaining inserts, commits the transaction, and closes the connection permanently.
commitAndClose() should only be called when access to SQLErrorStorage is no longer needed.