Add global exit() method to REPL.