Entanglement preservation by continuous distillation