Better logic for killing all Emacs vs client