Cleaning up background sync