There are times when we need to be alone to organize our thoughts and reflect more carefully on a subject. Or simply to be sad and cry in peace, because this is a human emotion that also needs to be released, repressing it is worse.
If you're asking what to do in a situation, take some time to reflect on the matter, don't rush into anything.