this commit fixes that node does not crash with an invalid file descriptor on windows