Correct a windows-specific hang that could occur during file
  pre-processing when Java throws an exception rather than returning a
  'no data available' return code from the read() method