Refactor sync service to gracefully stop under memory pressure and to never skip sync frames.