break on any connection error

Windows throws a separate error when the connection breaks.