Spoilers answer:
Since Ian’s wish is to spend quality time “forever”, the journey cannot end. So when Tor’s wished was fulfilled he disappeared, but Ian’s wish was left unfinished so he stays, hence why the loop begins again and there are other endings. Thanks for reading <3