Use retry for attempts to reconnect