Sync before reboot