If you want to make sure the interest rate your lender offers you is the rate you get when you close the loan, ask about a mortgage lock-in (also called a rate lock or rate commitment). Any lock-in promise should be in writing. Make sure your lender explains any costs or obligations before you sign.
Unless you are getting a lower interest rate, refinancing your home may cost you more money in the long run and may require you to pay higher monthly payments.
Refinancing is not the only way to decrease the term of your mortgage. By paying a little extra on principal each month, you will pay off the loan sooner and reduce the term of your loan. For example, adding $50 each month to your principal payment on the 30-year loan above reduces the term by 3 years and saves you more than $27,000 in interest costs.
If there are only a few years left on your current loan, it's no use refinancing with a long term loan. You may need extra cash but with a long term loan, you'll end up paying more for the entire loan term.