Galactic ejection may have sent cosmic wanderer through deep space