Clear the socket of anything in the receive buffer if we're going to retry connecting.