sync before final message

We shouldn't say we're done (and tell the user to reboot!) until after the sync
has gone through.
Merge pull request #9 from hcs64/sync-first

sync before final message