I was seeing this girl for a couple months who i had interest in and she had high interest in me so things were going well. Out of nowhere a close relative of mine was diagnosed with a terminal illness and my emotional state was rocky. I withdrew for a good week from social life including from the girl i was seeing and i hit her up to hang out recently

Me: Hey sorry if ive been distant but i needed some space because of family issues.

Her: oh thank you for telling me i was confused for a while

Me: yeah lol but anyways im thinking of doing something fun later tonight and youre included.

Her: I don't think that will work tbh

Me: wdym? I want to try something new w you?

Her: i met someone else

Me: oh well alright i guess, I understand. GL and take care

Her : thank you and i will

This girl literally had high interest in me (we fucked and then she told me how much she adored me) a week ago and then suddenly in my absence I guess it dropped because of a new guy? Did i hold frame well? I honestly was kinda surprised but I the only option i saw was walking away since i think she basically rejected me? Is there anything i couldve done better?