On the structure of certain excursions of a Markov process