Process for purification of vent streams