Do syncing as a lastaction so that we don't rotate unzipped log files.