waiting for youtube-dl exitcode so it doesn't become a zombie process