Fix the cancel functionality in the CD ripper

Make the CD ripper really cancel a rip in progress when the 'cancel' button is pressed.

Fixes #4166.