Fix to create consumer alongwith connection in RPC client