@Override
    public void close() {
        if (isConnectionStarted) {
            closeConnectionQuietly(connection);
            isConnectionStarted = false;
        }
    }
Get or create new connection to the database
modules/database-commons/src/main/java/org/testcontainers/delegate/AbstractDatabaseDelegate.java