The biggest thing is that submerging occurs after BOTH sides have fired.
You can;t charge in with subs, fire sneak attacks, and then submerge to avoid a counter-attack by any surviving defenders. The defenders get to fire back, then before anyone fires again, both attacking and defending subs can choose to submerge (leaving the battle)