Bug 1029679: handle connection refused error with clean error message

[test]