Close connection inside ConnectionSourceBase#discoverConnectionProperties()
That will fix LOGBACK-798