The fact the unit shut itself off for no apparent reason sounds a little suspicious. We had a radio, an Icom 502, that started to freeze. Turning off the unit and turning it back on restored normal operation for 15 or 20 minutes, at which point it would freeze again.
Ran it on different batteries and eliminated all the other variables we could think of external to the radio and had the same results. So we removed it and gave it to the marine electronics shop we use to troubleshoot and fix it. He ran it for hours and it worked fine. Finally he left it on overnight and when he came in the next morning, it had frozen. No clue as to why. So he sent it to Icom (they have a factory service center in this area). They ran it for a week, froze it, heated it, shook it, and could not get it to fail. So they sent it back and we re-installed it. Worked fine for a month or so and then one day it froze again. Turned it of and back on and it worked fine and continued to do so for the next couple of cruises.
But the fact that the problem, whatever it was, was still there convinced me that we could no longer trust the unit. So we replaced it with a new Icom 504 which uses the same case so fits the same cutout, uses the same mount, etc.
The point being that if a piece of electronics develops a problem, even a mysterious, very intermittent one, and there does not seem to be any obvious fix, even if the unit starts working "reliably" again on its own, the chances are the problem is still lurking inside and will eventually happen again. Usually when you most need the unit.