cancel before sync