Added server-shutdown function to kill emacs server and save buffers