exec_tools: Revert "don't close file descriptors we use"

Revert both commits 0270889867394 and 4ddf558fc88047adcf

Because, much earlier, I had already solved the problem with
commit 1e5b40f6bbf