bug-22168: Cleanup shutdown handling in jald
bug-22124: Don't mark records with bad digests as confirmed
bug-22243: Network library should check return of on_digest_response callback.

Also, send sync message on every record.