Outgoing CEO says if the price is right it might consider buying the troubled Massmart grocery chain.