The withdrawl from India was safe (for the British, let's ignore the partition bloodshed) and didn't lead to immediate regime collapse... so I certainly don't think it went as badly as Afghanistan or Vietnam.
No let’s not ignore the loss of over 1 million lives. Borders are still contested, with several wars having been fought, the scale of the disaster dwarfs Vietnam.