Stop sync loop when moving out of thread.