No.
His 2018 contract comes under the salary cap, the remainder disappears. He'll get paid out an agreed amount for the remainder of his contract (i.e. it will be something that he & the club negotiate) but it won't be under the cap.
No way ....
They can't just make his payments vanish.