This will fix LOGBACK-798 (Leaking jdbc pool connection)

Close connection inside ConnectionSourceBase#discoverConnectionProperties()