Check for running emacs process.