exit and wait syscall imp