add exit in child process