class IRB::Context

def exit(ret = 0)

Exits the current session, see IRB.irb_exit
def exit(ret = 0)
  IRB.irb_exit(@irb, ret)
rescue UncaughtThrowError
  super
end