   "Kill all buffers so that workgroups2 will wipe its current session."
   (interactive)
   (let (confirm-kill-emacs)
-    (mapc 'kill-buffer (doom/get-buffers))
+    (mapc 'kill-buffer (doom/get-buffers t))
     (kill-this-buffer)
     (delete-other-windows)
     (wg-save-session t)

         (max 25)
         (i 0)
         (continue t)
         destbuf)
    (setq destbuf
          (catch 'goto
            (if (not (doom/get-real-buffers))
                (throw 'goto doom-buffer)
              (funcall move-func)
              (while (not (and (doom/real-buffer-p)
                               (doom/project-p)))
                (if (or (eq (current-buffer) start-buffer)
                        (>= i max))
                    (throw 'goto doom-buffer)

(defun doom/kill-process-buffers ()
  "Kill all buffers that represent running processes and aren't visible."
  (interactive)
  (let ((buffer-list (buffer-list))
        (killed-processes 0))
    (dolist (p (process-list))
      (let* ((process-name (process-name p))
