The Harbor Pilot should have been onboard steering the ship until it got out until open water. The Harbor Pilots are supposed to know the terrain and it makes it curious how this even happens.
It seems like they lost power in strong currents and winds. This makes the knowledge of the harbor pilot moot.
Engines fail, no headway. When a ship loses headway, it cannot be steered.