change exit to _exit