If the player is a subordinate in a squad, or if you plan to use this with AI units as well, be sure to also use the following:
unassignVehicle unit;
Obviously, replace unit with the name of the unit you have ejecting. This will stop the AI squad leader from telling the player to reembark the vehicle once they've ejected, and will prevent AI units in general from automatically reembarking the vehicle anyway.