Emergency patch to fix wedged service threads when EMFILE occurs.