Feature request: option to unload filament at end of print

I change nozzles often, which means heating, unloading, cooling (which takes a long time), heating the new nozzle, loading… The process would be much faster if the cold nozzle were already unloaded at the end of the previous print, then I could just take the cold nozzle out.

A check box in the slicer that says “Unload filament at the end of the print” would do the job.

I recently tried manually adding a M702 command to the gcode but haven’t gotten that to work.