Pierre Perret, the sacking and the shipwreck