It does depend on the lender. Some can do what you suggest.
I'm curious about the reasons for this. Is it because your circumstances may not qualify you for another loan, or do you want to avoid exit fees?
In one case, the client sold a property and had some exit fees. He bought a new...