Change error messages in Socket::connect()