eshell/exit

eshell/exit is a compiled Lisp function in `esh-mode.el'.

(eshell/exit)

Leave or kill the Eshell buffer, depending on `eshell-kill-on-exit'.