Minor performance tuning to avoid excessive connection attempts of downed databases.