Membrane degassing