changed recvChan to return err for unknown xid