A lot of military aircraft crash.
My experience is that an aviation accident is not treated the same as a ship grounding.
If a ship runs aground, barring an engineering failure caused by some unpreventable happenstance, then procedures have not been followed appropriately, and disciplinary action almost always follows.
There are plenty of reasons a plane may crash through no fault of the pilot, and he may not be held responsible. In the standard investigation, even if it is found that a mechanic safety-wired a bolt incorrectly or put a pin in backwards, they may or may not be disciplined.
If there is a pattern of shoddy work, the commanding officer of the squadron may pay for it.
A neighbor growing up, commanded a submarine that grounded. I don't know for what period of time, but it did not matter. This gentleman was top shelf, heavily educated by the Navy, etc. He was reassigned to the Navy Annex, then he retired. The suburbs of the Beltway are full of stories like this. Making it to general staff level is a game of survival.