With the Iranian tough talk about the straights of Hormuz, he might have been trying to mask his entrance/exit into the area by shadowing a surface ship.
Ooops.
Just a thought.
Being is a submarine when the sh!t hits the fan must be really, really profoundly unpleasant.