Make sure we do not reuse the old socket connection when we have registered an error on the socket.