>>47425234He doesn't disappear if I remember correctly rather he goes back into an alternate future timeline, the sad part being that they will never interact again.
Kinda like Future Trunks, but of course pokemon always has to have its happy endings so every thing works out.