[#2212] CID37534:

do not attempt to close negative file descriptors