Distillation Simulation Robust to the Disappearance of Liquid and Vapor Phases