Check for ErrUnexpectedEOF before reconnecting

Signed-off-by: Lewis Marshall <lewis@lmars.net>