**Describe the bug** I'm using the [brave_search](https://github.com/modelcontextprotocol/servers/blob/main/src/brave-search) MCP server which exits(1) if BRAVE_API_KEY is not set. https://github.com/modelcontextprotocol/servers/blob/main/src/brave-search/index.ts#L85 This causes ClientSession.initialize to get stuck forever. **To Reproduce** Steps to reproduce the behavior: Use brave_search without setting BRAVE_API_KEY. **Expected behavior** When the process of an stdio_client exits an exception should be raised. **Screenshots** From this client implementation https://github.com/evilsocket/nerve/blob/main/nerve/tools/mcp/client.py 