Make plaintext socket able to reconnect