After ballooning over to the ship, Bugs opens the hatch. Sam ends up in the water-filled hole with the shark, then they both go back to the island. When Sam pulls the match out of his pocket, it would still have been soaking wet, and would not have lighted.