lets keep this simple, a rogue planet, flung from its own star in a supernova, passes through your planetary system. the gravity of the planet is strong enough and it passes in just the right place to alter the course of your planet outside the gravitational influence of its own star. what now? well... it simply floats away i guess... goodbye planet.. we'll miss you :(...