Add configurable timeout to client.