Fixed broken kill-emacs issue