Just closing the loan does not erase effects of late payments. The details will remain in your report for many years (7 year I think) and score will remain low for a long period too. In this period if you are able to show that you can pay on time with no default / late payment, while keeping credit card utilisation below 30% of your limit, your score will recover faster. However it is still going to be a long process.