Added timeout for StubClient.