misc fixes: use _exit to avoid segfault while exiting child process. plus misc