Update LiquibaseEndpoint so that connections are closed and returned to the pool after use. Fixes gh-6118