My understanding is that it was close to land twice. The first time, the captain went well out of the designated lane to do a "fly-by" of an island where he had some friends. On that pass, he hit a submerged rock and gashed the hull. Then he went to dinner.
An hour or two later, the crew convinced him that they were taking on lots of water and in danger of sinking. At that point, he deliberately ran the boat aground to prevent sinking in deep water.
At least, that's how I remember the story.
I took some Queen Mary trans-Atlantic cruises a few years ago. On those cruises, there are a lot of people who are fascinated by cruising, and the co-captains hold information and discussion sessions. The QM2 is supposed to be very sturdy, and they were fond of saying that they doubted that the newer mega-cruise ships were sturdy enough for ocean travel. Another point that came up was cruisers' concerns that there is no common language that every employee must speak, so communication wouldn't be stellar in a real emergency. Yet another point was that these huge cruise ships can't be evacuated without deaths...they know that.
On that cruise, in the Med the ship got too close to Majorca, so we could wave at the people on the island. A fellow cruiser actually said..."My God, the ocean bottom is rocky here. Are they crazy?"
Summary....I wonder if they've learned anything from actually managing to have a disaster so close to shore.