while imaginary friends are for the most part confined to the years of childhood , there are rare cases of them appearing during adulthood as a mechanism for coping with life traumas , such as childhood abuse or severe isolation .