3. connect error signal from socket to an appropriate slot in your code.