uploadmedia() uses moviepy. Moviepy leaks locked files and zombie subprocesses which is a bigger problem on Windows. Fix needs to happen in moviepy (Issue 596), and then this library needs to be upgraded to use the close() methods.