treat connection read error as connection being closed

solves reconnection/rails crash on windows