terminate done