Add reconnect attempt if a message fails due to IOException.