This isn't using Twisted so we need to close fds ourselves. Quite possibly we're doing it wrong. Can we perhaps revert this commit from this PR and land the rest and then tackle fds separately if the currently implementation is causing hassles?