how to terminate PhasePure