Under normal situations, if the ship is AT SEA ... the corpse is temporarily stored in special freezer onboard the vessel until the ship docks at its next destination or Port of Call. After berthing and clearance have been given by the different Port Authorities, the corpse is offloaded and accompanied by the spouse or family member and escorted by the Ship's Port Agent. Of course, that's granting that the dead Guest was with the spouse or any family member ... and not with the mistress or lover. In this case, then the Port Agent notifies his / her next of kin wherever he / she is from. Then, the necessary paperwork is pushed to accomodate the legal aspects.
Take note: Under no circumstance shall I allow the corpse to be stored in any of my food compartments (whether chiller or freezer) due to sanitation requirements