save scratch buffer when exit emacs