If you close the Roth IRA now and withdraw the balance, you will be taxed on the earnings unless the distribution is qualified. Furthermore, you will pay a 10% early distribution excise tax on the earnings unless you qualify for an exception.
The exceptions are listed on page 58 of IRS Publication 590. You will not owe any taxes on the principal.
If you are using the funds to contribute to another savings plan, find out whether your contribution is deductible. Some states allow a tax deduction for contributions made to such plans as prepaid college funds.
To learn more, read Taking Penalty-Free Withdrawals From Your IRA and Rules Regarding Substantially Equal Periodic Payment (SEPP).
This question was answered by Denise Appleby