The `except` block with exception matching throught `if 'connection refused' in str(e).lower():` is funny, but is not user-friendly. Probably related issues: - #15679 - #12161 - #9966 - #8221 - #7218 ... and more