How to stop ghosting someone

I ghosted my friend recently. I didn't really mean to, I just disappeared for 2 days, forgetting to tell him I went to my mom's place. When I got back I found a bunch of messages from him, but was pulled away by chores. It had been 4 days, and I was to embarrassed to text back. It's been about 2 weeks now, I feel bad but I can't bring myself to do it. It doesnt help that I tend to get extreme urges to isolate myself from everyone :(