Fixing issue where the TCP interface didn't recognize exceptions
generated on Windows when no data was available