Read console fixes

Two of the unit tests for Node.JS close the stdin handle. ReadConsoleA in tty.c at line 335 will not return with failure when the handle is deleted, thus causing the Node unit test to hang while waiting for IO to complete.