Check sync status before unload