Recovery of volatiles by distillation or stripping