Wait a second for logs to be flushed to disk.