wait() to avoid zombies