Rewritten all the closing of MediaProcessors