add exit hook before _exit

Add exit hook before _exit according to exit function definition in eus/lisp/c/unixcall.c.

I have one question about rosues.cpp exit.
Why cannot we use "exit" instead of "_exit"?
Actually, if I use "exit" instead of "_exit",  "double free or corruption" occurs and exiting seems to fail.