wait for pacman to exit