if form is cancelled, stop immediately