   "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)

  (setq buffer (or (and (bufferp buffer) buffer)
                   (and (stringp buffer) (get-buffer buffer))
                   (current-buffer)))
  (or (eq buffer doom-buffer)
      (when (buffer-live-p buffer)
        (with-current-buffer buffer
          (not (or (apply #'derived-mode-p (-filter 'symbolp doom-unreal-buffers))
                   (--any? (string-match-p it (buffer-name buffer))
                           (-filter 'stringp doom-unreal-buffers))))))))

;; Inspired by spacemacs <https://github.com/syl20bnr/spacemacs/blob/master/spacemacs/funcs.el>
;;;###autoload
