If you leave before you stay, you will have lost the treasure of the moment. It will then exist as a time in your life when physically you looked like you were there but emotionally, intellectually and spiritually you were gone.
A loss, to say the least, of the gift you might have been for others in that moment.
When you leave from the inside out you are lost to the people you are with. They may have needed your attention, love, compassion and intellect at that time.
Why waste such a gift?
If the experience is challenging then lean into it to see what is there for you.
You will know in your heart what is right for you in the situation.
Learning to stay before you go brings you the reward of experiencing your presence with that of others. It is in this exchange you see the value that each one brings and receives.