more tidying...
Sync didn't set the 'ended' flag correctly