sync before final message

We shouldn't say we're done (and tell the user to reboot!) until after the sync
has gone through.