There are no tax penalties for closing an HSA. However, if you use HSA funds for anything other than qualified medical expenses, those distributions will be subject to ordinary income tax, and in some cases, a 20% penalty.
For more information check out this article.