Before you move, mourn.
Lament that it didn’t work out.
Cry a little.
Shrug your shoulders, rethink a decision or two, wonder what could have made it work. Acknowledge the shortcoming before you get to going.
This mourning - and its reconciliation - is really the first step towards what’s next. You must own, name, and perhaps even celebrate the failure.
Otherwise, you may repeat it until you call it out.