Attempt to further improve fish's handling when it runs out of fds, and plug some fd leaks