If you have a HELOC open, you can sell your home and use the sale proceeds to pay off the HELOC balance at closing.