Tracked down leaked FDs (multiprocessing.Process pipes) and made it so everything is closed correctly.