It was definitely working for a good part of the time. Mismanagement in other areas does not imply the recession was caused by protectionism. Actually, there are several different reasons for the Brazilian recession, yet none of them has anything to do with a "closed" market.