Display error if logging fails, add sync write methods.