@Override
    protected void stopExtension() throws Exception {

        if (masterDatasource == null || masterConfig == null) {
            throw new IllegalArgumentException("Extension was not started!");
        }

        try (HikariDataSource masterDs = masterDatasource;
            HikariDataSource schemaDs = schemaDatasource;
            TestcontainersDatabaseInformationSupplier ip = instanceProvider) {
            super.stopExtension();
        }
    }
Sets the maximum wait time for shutting down the extension.
@see TestcontainersDatabaseInformation#setShutdownWaitTimeInSeconds(int)

@since 3.45.0
testcontainers/src/main/java/org/jdbi/v3/testing/junit5/tc/JdbiTestcontainersExtension.java