After remove network cable do you use any socket function?

I think if remove cable you receive stateChanged or disconnected signal. And receive error only if you do any socket operation after cable removing.