Oh man, if only you could have fired a steam-propelled torpedo at them, it may have bought you enough time to submerge.
On a similar note, I got in too big a hurry chasing a convoy not long ago. We were pummeled down to 28% HI by armed freighters. Had to submerge and disengage entirely. The deck gun, conning tower, and flak guns were completely totalled. The bow torp compartment took on water, and the engine room was a disaster. I lost the WO, his entire watch staff, both the gun crew and AA crew. 11 dead and one wounded altogether. Eeeeyikes!