ash: fix a case where we close wrong descriptor; add debug hack for that

1 file changed