If a creature leaves the battlefield before an effect instructs it to explore, it still explores. Abilities like Merfolk Cave-Diver's that trigger whenever a creature you control explores will still trigger.