Ensure that the error is a ConnError before casting it and checking if it's an EOF error