restart and cancel behave correctly