Raise Exception in check_cancel_move function

issue3196
review827005