Relax expected exception when connection fails

Exception appears to be different on Windows JVMs