a bomb

There happens to be an atomic bomb test going on right when they escape, which provides them a way home. To quote memory-alpha: “they have to do is fly directly into the atomic blast and expose the kemocite to the beta radiation, and it will cause a reverse time warp that they can just ride home”