Bug 843857: Fix connection error handling in UnixSocket; r=tzimmermann