Handle async rpc results correctly