Interesting to think about a Florida/Montreal swap of goalies. Price has $10.5 million AAV for three years after this. Bobrovsky has $10 million AAV for three years after this. (I know that Bobrovsky does not fit the age bracket OP requested, but he is still a serviceable goalie.)
Price will likely be on LTIR for the rest of his career, but dumping his contract would allow the Habs to avoid being in LTIR for the next three years. (I know that there will be lots of posters advising that there are no negative attributes of a team being in LTIR; these posters will be wrong.) Bobrovsky is clearly overpaid, but at least he can play.
Columbus and Toronto made a similar trade where Columbus acquired David Clarkson for Nathan Horton. Clarkson was overpaid, but could still play. Horton would never play again, but Toronto planned to stay in LTIR and was not worried about the negative impact.