If you decide to cancel your contract with an Edge agreement and you still have an edge balance can you hand in your phone to pay that off?
No, you have to pay it off, the only time you hand in your device is Early Edge
Depending on the device you can probably sell it and recoup some of that cost once it is paid off.