So I have a bunch of audio and video files that I am trying to combine. It seems to work fine for a couple of combinations then fails to close. Here is my code: