Handle exit by exiting all phantom instances.
Really exit when receive exit cmd.