Yes, one can
keep the HELOC open until the draw period is over, then it will close unless something is still owed at which time time it turns into an amortization period. However, one should never have that occur but rather refinance into another HELOC.