Fixed a crash if the cancel button was pressed multiple times while a selection was still spinning.