Magnetic detachment and plume control in escaping magnetized plasma