Fix stripping of connection error message with unix sockets