fix typo in close_proc

I think there's a typo. This was causing an issue when trying to read an image in ffmpeg.