the royal thistle had waited just outside the harbor entrance , to pick up the last of wainright 's men who had rowed out in a pinnace , having successfully just sunk kidd 's last remaining ship in the mouth of the harbor .