You should always leave cards open and just don't use them... unless there is an annual fee. Having an open card increases your time of having credit history.

Unfortunately, a credit card is one of the few ways to build your score. Student loans, a mortgage, those are others but not as easy.