Instead of closing them (assuming you do it almost immediately), keep it open until the next renewal period, but have your credit line reduced. It's not necessarily the number of credit cards you have, but rather the amount of available credit you have. Once the renewal comes due (assuming there's an annual fee), then cancel it, at least then you would have had the card for close to a year, which will look better than 1-3 months.
Jeff