As I recall, just after long range antiship cruise missiles were being installed an American ship in the Bahamas was carrying out a systems test on one. The hardware that connected the launch assembly to the battle bridge had not been installed. So, everything was being done by hand, but some functions were separated so the crew doing the work was not all in the same place. Suddenly, there was a whoosh, and everybody came running to see what had happened. Yep, it launched, and they had no idea where it went. Apparently, it didn’t hit anything.
As weapons get more and more complex, we will see more of these failures.
During WWII, a USN ship, USS William D. Porter, fired a torpedo at the USS Iowa aboard which was the President, FDR.
“En Route to North Africa, FDR Was Almost Killed by a Torpedo Fired By A US Navy Destroyer”
https://www.warhistoryonline.com/featured/fdr-torpedo-us-navy-destroyer.html?chrome=1
Appropriately enough, when the USS William D. Porter would come into a Harbor or encounter another ship, she was often greeted with the phrase, “Don’t Shoot, I’m a Republican!”