I'm guessing you surfaced right next to the boat right? If you did then you just validated my practice of taking a look around in the observation periscope before I surface.
Nice reactions to save your boat! I guess that grog that they brew on these boats really can make you go blind! :|\
Oh yeah, if you where surfacing when this happened I'd have a talk with your Sonar operator as well.